#######################################################
# Company:          Beijing ICfusion technology Co.Ltd
# Website:          http://www.icfusion.cn/
# Create Date:      17/02/2020
#
# Design Name:      Zhanng Shuai
# Target Devices:   PRX100T-V3.0 (SRAM-1M)
#
# Revision:         V1.0

#==================================================
#clk
set_property -dict {PACKAGE_PIN D18 IOSTANDARD LVCMOS33} [get_ports IN_CLK_50M]

#==================================================
#key

set_property -dict {PACKAGE_PIN M4 IOSTANDARD LVCMOS33} [get_ports {PB[1]}]
set_property -dict {PACKAGE_PIN L4 IOSTANDARD LVCMOS33} [get_ports {PB[2]}]
set_property -dict {PACKAGE_PIN L5 IOSTANDARD LVCMOS33} [get_ports {PB[3]}]
set_property -dict {PACKAGE_PIN K5 IOSTANDARD LVCMOS33} [get_ports {PB[4]}]
set_property -dict {PACKAGE_PIN R1 IOSTANDARD LVCMOS33} [get_ports {PB[5]}]
set_property -dict {PACKAGE_PIN P1 IOSTANDARD LVCMOS33} [get_ports {PB[6]}]
set_property -dict {PACKAGE_PIN R7 IOSTANDARD LVCMOS33} [get_ports {PB[7]}]

#==================================================
#hdmi

set_property -dict {PACKAGE_PIN C24 IOSTANDARD LVCMOS33} [get_ports HDMI_HS]
set_property -dict {PACKAGE_PIN A25 IOSTANDARD LVCMOS33} [get_ports HDMI_VS]
set_property -dict {PACKAGE_PIN A24 IOSTANDARD LVCMOS33} [get_ports HDMI_EN]
set_property -dict {PACKAGE_PIN B19 IOSTANDARD LVCMOS33} [get_ports HDMI_CLK]

#==================================================
#hdmi&lcd
set_property -dict {PACKAGE_PIN H14 IOSTANDARD LVCMOS33} [get_ports TFT_CS]
set_property -dict {PACKAGE_PIN A17 IOSTANDARD LVCMOS33} [get_ports {HDMI_D[16]}]
set_property -dict {PACKAGE_PIN C17 IOSTANDARD LVCMOS33} [get_ports {HDMI_D[17]}]
set_property -dict {PACKAGE_PIN F17 IOSTANDARD LVCMOS33} [get_ports {HDMI_D[18]}]
set_property -dict {PACKAGE_PIN E17 IOSTANDARD LVCMOS33} [get_ports {HDMI_D[19]}]
set_property -dict {PACKAGE_PIN G17 IOSTANDARD LVCMOS33} [get_ports {HDMI_D[20]}]
set_property -dict {PACKAGE_PIN D16 IOSTANDARD LVCMOS33} [get_ports {HDMI_D[21]}]
set_property -dict {PACKAGE_PIN E16 IOSTANDARD LVCMOS33} [get_ports {HDMI_D[22]}]
set_property -dict {PACKAGE_PIN F15 IOSTANDARD LVCMOS33} [get_ports {HDMI_D[23]}]
set_property -dict {PACKAGE_PIN A20 IOSTANDARD LVCMOS33} [get_ports {HDMI_D[8]}]
set_property -dict {PACKAGE_PIN B20 IOSTANDARD LVCMOS33} [get_ports {HDMI_D[9]}]
set_property -dict {PACKAGE_PIN A19 IOSTANDARD LVCMOS33} [get_ports {HDMI_D[10]}]
set_property -dict {PACKAGE_PIN D20 IOSTANDARD LVCMOS33} [get_ports {HDMI_D[11]}]
set_property -dict {PACKAGE_PIN D19 IOSTANDARD LVCMOS33} [get_ports {HDMI_D[12]}]
set_property -dict {PACKAGE_PIN A18 IOSTANDARD LVCMOS33} [get_ports {HDMI_D[13]}]
set_property -dict {PACKAGE_PIN C18 IOSTANDARD LVCMOS33} [get_ports {HDMI_D[14]}]
set_property -dict {PACKAGE_PIN B17 IOSTANDARD LVCMOS33} [get_ports {HDMI_D[15]}]
set_property -dict {PACKAGE_PIN B24 IOSTANDARD LVCMOS33} [get_ports {HDMI_D[0]}]
set_property -dict {PACKAGE_PIN D21 IOSTANDARD LVCMOS33} [get_ports {HDMI_D[1]}]
set_property -dict {PACKAGE_PIN A23 IOSTANDARD LVCMOS33} [get_ports {HDMI_D[2]}]
set_property -dict {PACKAGE_PIN C22 IOSTANDARD LVCMOS33} [get_ports {HDMI_D[3]}]
set_property -dict {PACKAGE_PIN B22 IOSTANDARD LVCMOS33} [get_ports {HDMI_D[4]}]
set_property -dict {PACKAGE_PIN A22 IOSTANDARD LVCMOS33} [get_ports {HDMI_D[5]}]
set_property -dict {PACKAGE_PIN C21 IOSTANDARD LVCMOS33} [get_ports {HDMI_D[6]}]
set_property -dict {PACKAGE_PIN B21 IOSTANDARD LVCMOS33} [get_ports {HDMI_D[7]}]

set_property -dict {PACKAGE_PIN E21 IOSTANDARD LVCMOS33} [get_ports {HDMI_I2S[3]}]
set_property -dict {PACKAGE_PIN C26 IOSTANDARD LVCMOS33} [get_ports {HDMI_I2S[2]}]
set_property -dict {PACKAGE_PIN D24 IOSTANDARD LVCMOS33} [get_ports {HDMI_I2S[1]}]
set_property -dict {PACKAGE_PIN B26 IOSTANDARD LVCMOS33} [get_ports {HDMI_I2S[0]}]

#==================================================
#i2c
set_property -dict {PACKAGE_PIN R21 IOSTANDARD LVCMOS33} [get_ports IIC_SDA]
set_property -dict {PACKAGE_PIN R20 IOSTANDARD LVCMOS33} [get_ports IIC_SCL]
